﻿/**
 * 數據對象基類
 * @author LuoDong
 * @email luo4521@online.net.tw
 * 2010-2-8 9:44
 */
package com.addcn.common.data
{
	import com.addcn.common.inter.IDataBase;
	
	public class  DataBase implements IDataBase 
	{
		protected var _data : Object;
		
		public function DataBase() : void
		{
			this._data = { };
		}
		
		public function getData(r_key : * ) : Object
		{					
			return this._data[r_key];
		}
		
		public function setData(r_key : *, r_value : *) : void
		{
			this._data[r_key] = r_value;
		}
		
		public function get data() : Object
		{
			return this._data;
		}
		public function set data(r_data : Object) : void
		{
			this._data = r_data;
		}
		
		public function destroyData() : void
		{
			this._data = {};
		}
		
	}
	
}
